package com.xbongbong.pro.outstockproduct.pojo;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * 出库未填批次,后台扣除的具体批次
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/6/13 19:09
 * @since v1.0
 */
@Getter
@Setter
public class OutstockBatchPojo {
    /**
     * 批次
     */
    private String batch;
    /**
     * 数量
     */
    private Double num;

    public OutstockBatchPojo(String batch, Double num) {
        this.batch = batch;
        this.num = num;
    }

    public String getBatch() {
        if (Objects.isNull(this.batch)){
            return "";
        }
        return batch;
    }
}
